Behavioural Subtyping Relations for Object-Oriented Formalisms
نویسندگان
چکیده
In this paper we investigate the object-oriented notion of subtyping in the context of behavioural formalisms. Subtyping in OO-formalisms is closely related to the concept of inheritance. The central issue in the choice of subtyping relations among classes is the principle of substitutability: an instance of the subtype should be usable wherever an instance of the supertype was expected. Depending on the interpretation of \usable", we obtain a variety of subtyping relations: stronger subtyping relations, allowing one to share the subtype instance among diierent clients without any change compared with the supertype, and weaker relations, restricting the possibilities of interference of diierent clients on the subtype instance. The subtyping relations are taxonom-ically ordered in a hierarchy. The concept of \usability" is formalised via testing scenarios, which provide alternative characterisations for the subtyping relations.
منابع مشابه
Behavioural Subtyping and Property Preservation for Objects Oriented Formalisms
Behavioural typing and subtyping has proved to be a very useful concept for the support of incremental reuse in the area of object-oriented (O-O) languages. With the emergence of formalisms integrating the O-O approach and concurrency, the question arises how behavioural subtyping may be supported by such formalisms. We present a formal framework for the definition of behavioural subtyping in O...
متن کاملBehavioural Types in CoOperative Objects
Behavioural typing and subtyping has proved to be a very useful concept for the support of incremental reuse in the area of object-oriented (O-O) languages. With the emergence of formalisms integrating the O-O approach and Petri nets, the question arises how behavioural subtyping may be supported by such formalisms. We present a formal framework for the definition of behavioural typing in CoOpe...
متن کاملPatterns and Rules for Behavioural Subtyping
Subtyping relations for object-oriented formalisms describe relationships between superand subclasses which satisfy the substitutability requirement imposed on types and their subtypes. Behavioural subtyping is concerned with subtypes for active classes with an explicit dynamic behaviour, specifiable for instance by object-oriented formal methods combining state-based with behavioural formalism...
متن کاملSubtyping patterns for active objects
Subtyping relations for object-oriented formalisms describe relationships between superand subclasses which satisfy the substitutability requirement imposed on types and their subtypes. For active objects with an associated behaviour description subtyping relations also have to guarantee substitutability with respect to the dynamic behaviour of classes. In this paper, we give subtyping patterns...
متن کاملSpecification and (property) inheritance in CSP-OZ
CSP-OZ [C. Fischer, CSP-OZ: A combination of Object-Z and CSP, in: H. Bowman, J. Derrick (Eds.), Formal Methods for Open Object-Based Distributed Systems, FMOODS’97, vol. 2, Chapman & Hall, 1997, pp. 423–438] is a combination of Communicating Sequential Processes (CSP) and Object-Z (OZ). It enables the specification of systems having both a state-based and a behaviouroriented view using the obj...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2000